package org.jeecg.modules.demo.levelset.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.levelset.entity.LevelSet;

/**
 * @Description: 会员等级设置
 * @Author: jeecg-boot
 * @Date: 2021-12-31
 * @Version: V1.0
 */
public interface ILevelSetService extends IService<LevelSet> {
    /**
     * 查询会员等级
     *
     * @param
     * @return
     */
    IPage<LevelSet> searchLevelSet(Page<LevelSet> page, String rankName, String storeId);

    /**
     * 根据编号查询会员等级数量
     *
     * @param storeId
     * @param rankNum
     * @return
     */
    Integer getCountByNum(String storeId, String rankNum);

    void updateMemberNum();
}
